<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/app/include/init_app.jsp" %>
<%@ page import="com.qbooks.board.*" %>
<%
	String board_id			= StringUtil.nvl(request.getParameter("board_id"));
	String curr_page 		= StringUtil.nvl(request.getParameter("curr_page"), "1");

	
	HashList boardInfo		= (HashList)request.getAttribute("boardInfo");	//boardDAO.selectBoardInfo(infos));
	HashList wordList 		= (HashList)request.getAttribute("wordList");	//boardDAO.selectWordList(infos);
	String pagingHtml		= (String)request.getAttribute("pagingHtml");
	
	//쓰기권한
	boolean bWritable		= true;
	if ("A".equals(boardInfo.get("write_auth",0))) {	//관리자
	//	bWritable = isAdmin;
	} else if ("M".equals(boardInfo.get("write_auth",0))) {	//회원
		bWritable = isLogin;
	}

%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
	<title><%= HOME_NAME %></title>
	<link rel="stylesheet" href="../../css/mobile.app.css"/>
	<link rel="stylesheet" href="../../css/jquery.mobile-1.4.2.min.css"/>
	<script src="../../js/jquery-1.7.2.min.js"></script>
	
	
	<script type="text/javascript">
	
	
	</script>
	
</head>
<body>
    <div>
    
        <div>
        
        	<ul id="word_list">
<%		for (int i = 0; i < wordList.size(); i++) { %>
				<li>
					<a href="./wordView.app?word_id=<%= wordList.get("word_id",i)%>&curr_page=<%=curr_page%>" target="_blank">
						<%= wordList.get("subject",i) %>
						<p class="init_date"><%= wordList.get("init_date",i) %></p>
					</a>
				</li>
<%		} %>
        	</ul>
        	
        	<%-- <div class="pagination">
				<%= pagingHtml %>
        	</div> --%>
        	
        </div>
  	</div>
</body>
</html>
